<template>
  <div class="topbar">
    <div class="wrap topbarWrap">
      <div class="l">欢迎来到叩丁狼积分商城</div>
      <ul class="r">
        <li>
          <img
            class="avatar"
            src="../assets/img/userImg.f8bbec5e.png"
            width="26"
            alt=""
          />
          用户名：游客
        </li>
        <li>我的积分：--</li>
        <li>获取积分</li>
        <li>叩丁狼官网</li>
        <li class="login-btn">
          <img src="../assets/img/cart.png" alt="" /> 购物车
          <span>5</span>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.wrap {
  width: 1200px;
  margin: 0 auto;
}
.topbar {
  width: 100%;
  height: 40px;
  line-height: 40px;
  background: #242b39;
  font-size: 14px;
  .topbarWrap {
    display: flex;
    color: #fffefe;
    justify-content: space-between;
    .r {
      display: flex;
      justify-content: center;
      align-items: center;
      li {
        margin-left: 20px;
        cursor: pointer;
        text-align: center;
        img {
          vertical-align: middle;
        }
        span {
          line-height: 22px;
          text-align: center;
          width: 22px;
          height: 22px;
          background: #fd604d;
          border-radius: 11px;
          display: inline-block;
          vertical-align: middle;
        }
      }
      .login-btn {
        background: #0a328e;
        width: 124px;
        height: 40px;
      }
    }
  }
}
</style>
